<div id="inner">
        <div class="wrap">
            <div id="main">
                <div id="content" class="faqs entry">
                	<a name="top"></a>
                    <h1 class="ask-title entry-title">Ask</h1>
                    <div class="asks entry-content">
                    	<?php if(isset($faqs[0])) {?>
                    	<?php if(count($faqs)>0 && count($faqs)<=25){?>
	                        <div class="faqs-block fl">
	                            <h2>Frequently Asked Questions</h2>
	                            <ul class="ques-list">
	                            	<?php for($i = 1; $i <= count($faqs); $i++) {?>
	                                	<li><?php echo $i.'. ';?>&nbsp;&nbsp;&nbsp;<a href="#q<?php echo $i;?>"><?php $j = $i -1;echo $faqs[$j]->question;?></a></li>
	                                <?php }?>
	                            </ul>
	                        </div>
                        <?php }?>
                        <?php if(count($faqs)>25){?>
                        	<div class="faqs-block fl">
	                            <h2>Frequently Asked Questions</h2>
	                            <ul class="ques-list">
	                            	<?php for($i = 1; $i <= 25; $i++) {?>
	                                	<li><?php echo $i.'. ';?>&nbsp;&nbsp;&nbsp;<a href="#q<?php echo $i;?>"><?php $j=$i-1;echo $faqs[$j]->question;?></a></li>
	                                <?php }?>
	                            </ul>
	                        </div>
	                        <div class="faqs-block fr">
	                            <h2></h2><br>
	                            <ul class="ques-list">
	                            	<?php for($i=26; $i<=count($faqs);$i++){?>
	                                	<li><?php echo $i.'. ';?>&nbsp;&nbsp;&nbsp;<a href="#q<?php echo $i;?>"><?php $j=$i-1; echo $faqs[$j]->question;?></a></li>
	                                <?php }?>
	                            </ul>
	                        </div>
                        <?php }?>
                        <?php }else {echo "<span style='color:green; font-style:italic; font-size:16px'>Sorry! There is no content at this moment.</span>";}?>
                        <div class="clearfix"></div>
                    </div><!-- end .entry-content -->

                    <h1 class="answer-title entry-title">Answers</h1>
                    <div class="answers entry-content">
                    	<?php if(count($faqs[0])>0){?>
	                        <h2>Answer FAQs</h2>
	                        <ol class="ques-list">
	                        	<?php for($i=1; $i<=count($faqs); $i++){?>
		                            <li>
		                                <div id="#q<?php echo $i;?>">
		                                    <a name="q<?php echo $i;?>"></a>
		                                    <span class="questions-a"><?php $j=$i-1;echo $faqs[$j]->question;?> </span><a href="#top">Back to top</a>
		                                    <div class="answer"><?php $j=$i-1;echo $faqs[$j]->answers;?></div>
		                                </div>
		                            </li>
	                            <?php }?>
	                        </ol>
                        <?php } else {echo "<span style='color:green; font-style:italic; font-size:16px'>Sorry! There is no content at this moment.</span>";}?>
                    </div>
                </div><!-- end #content -->
            </div><!-- end #main -->